#include "Core/Array/Tree.h"
#include "TreeTest.h"

const char * TreeTest::GetName() const
{
	return "Tree Test";
}

error TreeTest::Create()
{
	if(Failed(UnitTest::Create()))
		return errFailed;

	return errOK;
}

error TreeTest::Destroy()
{
	if(Failed(UnitTest::Destroy()))
		return errFailed;

	return errOK;
}

error TreeTest::Execute()
{
	Tree<int> tree;
	tree.Insert(1);
	tree.Insert(tree.Root(), 11);
	tree.Insert(tree.Root(), 12);
	tree.Insert(tree.Root(), 13);
	/*Tree<int>::Iterator it = tree.Root()->GetChild(11);
	tree.Insert(it, 111);
	tree.Insert(it, 112);
	tree.Insert(it, 113);
	tree.Insert(it, 114);
	tree.Insert(it, 115);*/



	return errOK;
}
